package com.example.distinguishcolors.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Yingyong Lao
 * 创建时间 2021/10/3 22:45
 * @version 1.0
 */
public class DateUtils {
    public static String formatDateByTimeMillis(long timeMillis){
        Date date=new Date(timeMillis);
        SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return simpleDateFormat.format(date);
    }
}
